.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
}

.container h2 {
    margin: 0 0 2rem 0; /* 下边距32px */
    font-size: 1.8rem;
    color: #2c3e50;
    letter-spacing: 0.5px; /* 字间距 */
}

/* 表单元素间距优化 */
.container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 统一元素间距 */
}

.container label {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: 500; /* 中等字重 */
}

.container input {
    padding: 0.8rem;
    border: 2px solid #e2e8f0; /* 更明显的边框 */
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.container input:focus {
    border-color: #4299e1; /* 聚焦状态 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* 按钮组优化 */
.button-group {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container button {
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.login-container button:hover {
    transform: translateY(-1px);
}

/* 响应消息样式优化 */
#response-message {
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    /* 设置背景图片 */
    background-image: url('/static/imgs/back.jpg');
    /* 设置背景图片不重复 */
    background-repeat: no-repeat;
    /* 设置背景图片覆盖整个页面 */
    background-size: cover;
    /* 背景图片固定，页面滚动时不移动 */
    background-attachment: fixed;
}



h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.form-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

label {
    font-weight: 500;
    color: #333;
}

input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

button {
    width: 100%;
    padding: 0.8rem;
    background: lightsteelblue;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: lightslategray;
}

#registerButton {
    background: #e2e8f0;
    color: #2d3748;
}

#registerButton:hover {
    background: #cbd5e0;
}



/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 1.5rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}